$$
C=\sum_p{c_pt_p}
$$